package com.cy.pj.eiems.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cy.pj.eiems.entity.MoreTableData;
import com.cy.pj.eiems.service.EiemsAgencyCommentService;
import com.cy.pj.eiems.vo.JsonResult;
import com.cy.pj.eiems.vo.PageObject;


@Controller
@RequestMapping("/agencyComment/")
public class EiemsAgencyCommentController {
	@Autowired
  private EiemsAgencyCommentService eiemsAgencyInformationService;
	@RequestMapping("findObjects")
	@ResponseBody
	public JsonResult doFindObjects(
			Integer name,Integer pageCurrent) {
		PageObject<MoreTableData> pageObject=eiemsAgencyInformationService.findObjects(name, pageCurrent);
		System.out.println(pageObject);
		return new JsonResult(pageObject);
	}
}
